package me.guowenlong.rxextension.api;

import io.reactivex.Observable;
import me.guowenlong.rxextension.bean.GetDeliverType;
import me.guowenlong.rxextension.bean.RequestEntity;
import me.guowenlong.rxextension.bean.ResponseEntity;
import me.guowenlong.rxextension.bean.SendCode;
import retrofit2.Response;
import retrofit2.http.Body;
import retrofit2.http.POST;

/**
 * desc   :
 * author : guowenlong
 * Email  : guowenlong20000@gmail.com
 * time   : 2018年12月25日18 : 00
 */
public interface Api {

    @POST("SendCode")
    Observable<Response<SendCode>> sendCode(@Body RequestEntity requestEntity);

    @POST("GetDeliverType")
    Observable<Response<GetDeliverType>> getDeliverType(@Body RequestEntity requestEntity);

    @POST("SendCode")
    Observable<Response<ResponseEntity<String>>> sendCode1(@Body RequestEntity requestEntity);

    @POST("GetDeliverType")
    Observable<Response<ResponseEntity<Integer>>> getDeliverType1(@Body RequestEntity requestEntity);
}
